package com.itheima.test2;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

/*
键盘录入 用户名密码
保存到本地
 */
public class Test01 {

    public static void main(String[] args) throws IOException {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入用户名");
        String username = sc.nextLine();
        System.out.println("请输入密码");
        String password = sc.nextLine();
        FileWriter writer = new FileWriter("day13\\user.txt");
        writer.write(username+"="+password);
        writer.close();


    }
}
